import Database, * as BetterSqlite3 from 'better-sqlite3'
import path from 'node:path'
import { app } from 'electron'
const file = path.resolve(app.getPath('home'), 'Desktop', 'index.db')
const db: BetterSqlite3.Database = new Database(file, {})
db.pragma('journal_mode = WAL')
export { db }
